Dorota Czaplejewicz [Thu, 23 Aug 2018 10:32:11 +0000 (12:32 +0200)]
imwayland: clear preedit on focus out
Dorota Czaplejewicz [Thu, 29 Mar 2018 17:49:10 +0000 (19:49 +0200)]
imwayland: Add text-input-unstable-v3 support
The wayland input module now represents text-input-unstable-v3 support, while the old module supporting gtk-text-input was renamed to gtkwayland.
Benjamin Otte [Tue, 18 Dec 2018 01:04:54 +0000 (02:04 +0100)]
gstmedia: Implement error handling.
I wonder who forgot that.
Whoops.
Benjamin Otte [Tue, 18 Dec 2018 01:04:16 +0000 (02:04 +0100)]
mediastream: Allow multiple calls to gtk_media_stream_error()
Just ignore all further ones.
Benjamin Otte [Tue, 18 Dec 2018 00:20:36 +0000 (01:20 +0100)]
a11y: Fix function return type
Typo right there.
Daniel Boles [Mon, 17 Dec 2018 20:13:51 +0000 (20:13 +0000)]
RGBA: tiny grammar improvements in to_string doc
Daniel Boles [Mon, 17 Dec 2018 19:59:28 +0000 (19:59 +0000)]
RGBA: Consistently use “” around inline arg names
instead of being inconsistent and not using them later, which leaves a
bunch of single letters floating among real words, not the prettiest.
Daniel Boles [Mon, 17 Dec 2018 19:57:09 +0000 (19:57 +0000)]
RGBA: Fix example to_string output for reality/CSS
* We don't output spaces anywhere in the code, unlike the doc suggested.
* CSS explicitly forbids whitespace between function names and lparens:
https://stackoverflow.com/questions/
13877198
Christoph Reiter [Sun, 16 Dec 2018 20:32:25 +0000 (21:32 +0100)]
ci: Update Docker image to Fedora 29 and meson to 0.49.0
Andre Klapper [Sat, 15 Dec 2018 23:45:41 +0000 (00:45 +0100)]
Replace git.gnome.org by Gitlab URL in <GitRepository> in DOAP file
Andre Klapper [Sat, 15 Dec 2018 22:32:24 +0000 (23:32 +0100)]
Replace Bugzilla by Gitlab URL in DOAP file
Emmanuele Bassi [Fri, 14 Dec 2018 20:36:51 +0000 (20:36 +0000)]
Remove gtk_widget_show_all() call
Extraneous chunk from
7601bca7587dd29bde3d1554e644a10ae6dafc18.
Cherry picked from gtk-3-24, which has a gtk_widget_show_all() function.
Matthias Clasen [Fri, 14 Dec 2018 19:25:27 +0000 (19:25 +0000)]
Merge branch 'master' into 'master'
A11y: Add support for AtkTableCell
See merge request GNOME/gtk!411
Mike Gorse [Fri, 14 Dec 2018 19:25:27 +0000 (19:25 +0000)]
A11y: Add support for AtkTableCell
António Fernandes [Sat, 24 Nov 2018 01:49:43 +0000 (01:49 +0000)]
placesview: List only available protocols as available
We display a list of supported protocols in the server_addresses_popover.
However, this curated list contains protocols which may or may not be
available, depending on the respective gvfs backend being installed.
So, populate the list only with protocols which are available.
https://gitlab.gnome.org/GNOME/gtk/issues/1476
António Fernandes [Sat, 24 Nov 2018 00:31:07 +0000 (00:31 +0000)]
placesview: Set .error style if unsupported protocol
When the user types an address with a schema that is not supported,
the Connect button doesn't become sensitive, but there is no visible
feedback at all.
This feels unresponsive and leaves the user clueless.
While it doesn't help explain why the address doesn't work, this will
provide a hint that the input was acknowledged but doesn't work.
https://gitlab.gnome.org/GNOME/gtk/issues/1476
Matthias Clasen [Fri, 14 Dec 2018 17:02:30 +0000 (17:02 +0000)]
Merge branch 'fix-polygon-svg-recolor' into 'master'
icontheme: Recolor <polygon> elements in SVGs too
See merge request GNOME/gtk!443
Timm Bäder [Thu, 13 Dec 2018 12:05:14 +0000 (12:05 +0000)]
Merge branch 'demo-combobox-typo-gtk4' into 'master'
demos/gtk-demo/combobox: fix typo
See merge request GNOME/gtk!444
LRN [Tue, 11 Dec 2018 13:47:57 +0000 (13:47 +0000)]
Merge branch 'win32-honest-clipboard-gtk4' into 'master'
GDK W32: Be honest about supported clipboard formats (GTK4)
See merge request GNOME/gtk!399
Jakub Steiner [Mon, 10 Dec 2018 20:22:56 +0000 (21:22 +0100)]
Revert "Adwaita: GNOME 3.32"
This reverts all GNOME 3.32 styling from master
Christoph Reiter [Thu, 29 Nov 2018 22:19:38 +0000 (23:19 +0100)]
GDK W32: Always set gtk-font-name to the active UI font. Fixes #1484
This makes apps use "Segoe UI 9" by default instead of whatever matches "Sans 10".
It also cleans up the code and uses some new pango API while at it.
This was previously disabled in
9e686d1fb5cb20 because it led to a poor glyph coverage
on certain versions of Windows which don't default to "Segoe UI 9" (Chinese, Korean, ..)
because the font fallback list was missing in pango.
This is about to get fixed in https://gitlab.gnome.org/GNOME/pango/merge_requests/34
so enable it again when we detect a new enough pango version.
(See !436 for the original MR)
Jeremy Bicha [Mon, 10 Dec 2018 04:25:02 +0000 (23:25 -0500)]
demos/gtk-demo/combobox: fix typo
Fix typo that prevented the P-S submenu from displaying correctly
Matej Urbančič [Sun, 9 Dec 2018 20:26:33 +0000 (21:26 +0100)]
Updated Slovenian translation
Christoph Reiter [Wed, 21 Nov 2018 19:34:29 +0000 (20:34 +0100)]
win32: Don't multiply the scroll event deltas by the Windows scroll lines setting. See #1408
GTK widgets expect the scroll deltas to be 1 or -1 and calculate a scroll value from that.
Multiplying the delta by the Windows scroll line setting (which defaults to 3) results
in a much larger delta and vastly different behaviour for running a GTK app on Windows
vs on Linux. For example text view and tree view scroll by 9 lines per scroll wheel tick
per default this way while on Linux it is around 3.
Remove the multiplication for now.
See !426 for the gtk3 MR
Christoph Reiter [Sat, 1 Dec 2018 09:38:10 +0000 (10:38 +0100)]
GDK W32: set default settings for fontconfig.
Enables hinting, antialiasing and set the subpixel orientation according to the
active clear type setting. This ensures that font rendering with the fontconfig backend
looks similar to the win32 backend, at least with the default system font.
See !437
Philip Chimento [Sat, 8 Dec 2018 01:40:32 +0000 (01:40 +0000)]
icontheme: Recolor <polygon> elements in SVGs too
Otherwise, it's possible to have a symbolic icon where some of the
shapes keep the #bebebe chroma key color.
Timm Bäder [Fri, 7 Dec 2018 16:03:45 +0000 (17:03 +0100)]
menushell: Listen to non-primary button clicks
Menus should also be deactivated on right-button clicks.
Timm Bäder [Wed, 5 Dec 2018 09:44:11 +0000 (10:44 +0100)]
gl renderer: Track border width state separately
Timm Bäder [Wed, 5 Dec 2018 09:37:02 +0000 (10:37 +0100)]
gl renderer: Ignore subsequent render target ops
Timm Bäder [Wed, 5 Dec 2018 09:36:43 +0000 (10:36 +0100)]
gl renderer: Ignore viewport ops to the same viewport
Timm Bäder [Tue, 4 Dec 2018 14:50:33 +0000 (15:50 +0100)]
gesturestylus: Use proper syntax when refering to signals
Jakub Steiner [Fri, 7 Dec 2018 11:00:21 +0000 (12:00 +0100)]
Adwaita: regenerate CSS
- for the previous patch
Jakub Steiner [Fri, 7 Dec 2018 09:58:56 +0000 (09:58 +0000)]
Merge branch 'context_menus' into 'master'
Adwaita GTK Theme: Add bigger shadow and border-radius to menus
See merge request GNOME/gtk!432
Jakub Steiner [Wed, 5 Dec 2018 15:19:46 +0000 (16:19 +0100)]
Adwaita: buttons & headerbar tweaks
- tone down the button z-depth
- flatter headerbars
Daniel Boles [Tue, 4 Dec 2018 20:37:08 +0000 (20:37 +0000)]
Box, Grid: Improve various bits of documentation
Issue #1495 showed that the docs of GtkGrid retain outdated implications
that (as was once, but is no longer, the case) it is intended to replace
GtkBox, by discussing HfW and widget properties in a way that suggests
GtkBox can't handle them. But of course it does, and it's preferable for
simple single-row/column cases. Worse, we said GtkGrid “provides exactly
the same functionality” for the latter case, but the original point of
that Issues was that it doesn’t, at least for CSS positional selectors!
Box:
• Use an actually meaningful @Short_description.
• Remove unhelpful @See_also references to unrelated containers.
• Remove references to “rectangular area”: it might be another shape
via CSS, or “rectangular” might falsely imply 2 dimensions of children.
• Mention Orientable:orientation.
• Emphasise usefulness of :[hv]align for allocating in the other axis.
• Don’t say that Grid “provides exactly the same functionality” for a
single row or column, since (A) it is overkill for that case and (B)
said Issue proved that it *doesn’t* for CSS child order, for example.
Grid:
• Don’t dwell on widget properties and height-for-width in a way that
wrongly implies that Box can’t handle those (or Grid can better). In
fact, just get rid of that bit altogether: Box handles them fine, and
such wording was only needed years ago for migration from GTK+ 2 to 3.
• Point to GtkBox as being preferred for the simple row/column use case.
Timm Bäder [Tue, 4 Dec 2018 14:32:22 +0000 (14:32 +0000)]
Merge branch 'bye-app-menu-gtk4' into 'master'
widget-factory: move app menu contents to primary menu (gtk4)
Closes #916
See merge request GNOME/gtk!365
Timm Bäder [Mon, 3 Dec 2018 18:08:05 +0000 (19:08 +0100)]
application: Remove dead assignment
Timm Bäder [Mon, 3 Dec 2018 18:07:54 +0000 (19:07 +0100)]
button: Remove some dead code
Timm Bäder [Mon, 3 Dec 2018 17:54:25 +0000 (18:54 +0100)]
button: Remove some unnecessary includes
Timm Bäder [Mon, 3 Dec 2018 17:29:46 +0000 (18:29 +0100)]
gl renderer: Fix remaining TODO about offset nodes
All of the nodes should now support offsets.
Timm Bäder [Mon, 3 Dec 2018 17:29:36 +0000 (18:29 +0100)]
gl renderer: transform nodes: offset
Timm Bäder [Mon, 3 Dec 2018 17:11:09 +0000 (18:11 +0100)]
gl renderer: Clip nodes: offset
Timm Bäder [Mon, 3 Dec 2018 17:03:34 +0000 (18:03 +0100)]
gl renderer: Linear gradients: offset
Timm Bäder [Mon, 3 Dec 2018 16:56:46 +0000 (17:56 +0100)]
gl renderer: Outset shadow nodes: offset
Timm Bäder [Mon, 3 Dec 2018 16:53:04 +0000 (17:53 +0100)]
gl renderer: Care about offset when rendering border nodes
Timm Bäder [Mon, 3 Dec 2018 16:49:51 +0000 (17:49 +0100)]
gl renderer: care about offset when rendering shadow nodes
Matthias Clasen [Tue, 4 Dec 2018 02:46:09 +0000 (21:46 -0500)]
emoji chooser: Actually force Emoji presentation
The previous commit was using the text presentation selector
instead of the Emoji one. Oops.
Timm Bäder [Sun, 2 Dec 2018 15:15:17 +0000 (16:15 +0100)]
testuite Add translucent offscreen rendering test case
Timm Bäder [Sun, 2 Dec 2018 15:14:31 +0000 (16:14 +0100)]
showrendernode: Fix GtkImage size
Make sure we show the paintable unscaled.
Timm Bäder [Sun, 2 Dec 2018 15:04:40 +0000 (16:04 +0100)]
gl renderer: Remove blend shader
It's unused.
Timm Bäder [Sun, 2 Dec 2018 15:03:08 +0000 (16:03 +0100)]
gl renderer: Reset opacity when rendering to a texture
The opacity will already be applied when rendering the final texture.
Timm Bäder [Sun, 2 Dec 2018 13:31:57 +0000 (14:31 +0100)]
gl renderer: Add function to draw debug rectangle
Timm Bäder [Sun, 2 Dec 2018 13:17:18 +0000 (14:17 +0100)]
gl renderer: Refactor render op builder
Timm Bäder [Sun, 2 Dec 2018 12:39:55 +0000 (13:39 +0100)]
gl renderer: Add more node types to print_render_node_tree
debugging ++
Timm Bäder [Sun, 2 Dec 2018 11:58:07 +0000 (12:58 +0100)]
window: Don't try to size-allocate unmapped popovers
The gtk_widget_size_allocate call won't do anything anyway.
Timm Bäder [Sun, 2 Dec 2018 10:04:15 +0000 (11:04 +0100)]
gl renderer: Use ops_transform_bounds_modelview in more places
Timm Bäder [Sun, 2 Dec 2018 09:20:59 +0000 (10:20 +0100)]
gl renderer: Add NodeSample
As a quick way of checking what a particular sample of nodes (e.g. all
offset node children) are made up of.
Timm Bäder [Sun, 2 Dec 2018 08:54:25 +0000 (09:54 +0100)]
sizerequest: Directly query new request_mode
We are already inside the function that populates the size request
cache, so do it here instead of implicitly in get_request_mode.
Timm Bäder [Sun, 2 Dec 2018 08:41:13 +0000 (09:41 +0100)]
gl renderer: Move geometry calculation further down
We don't need it above, so move it to where it belongs.
Timm Bäder [Sun, 2 Dec 2018 08:39:55 +0000 (09:39 +0100)]
gl renderer: Apply offset with scale
Timm Bäder [Sun, 2 Dec 2018 08:05:50 +0000 (09:05 +0100)]
gl renderer: Refactor add_offscreen_ops
Use a graphene_rect_t for the node bounds instead of 4 floats.
This makes it simpler to pass the size in without the offset applied.
Timm Bäder [Sun, 2 Dec 2018 07:17:34 +0000 (08:17 +0100)]
gl renderer: Add offscreen ops without offset applied
When doing color matrix nodes. This fixes color matrix node with scale =
2.
Timm Bäder [Sun, 2 Dec 2018 07:12:44 +0000 (08:12 +0100)]
gl renderer: Reset offset when rendering offscreen
We want to apply the offset to the rendered texture, not to the
offscreen-rendered content.
Timm Bäder [Sun, 2 Dec 2018 07:12:09 +0000 (08:12 +0100)]
gl renderer: add render ops for dumping the framebuffer
So offscreen rendering can be properly debugged.
Timm Bäder [Sun, 2 Dec 2018 05:56:52 +0000 (06:56 +0100)]
gl renderer: Set the render region as initial clip
So we avoid creating render ops for things outside of it.
Timm Bäder [Fri, 30 Nov 2018 12:14:00 +0000 (13:14 +0100)]
GdkGLContext: Fix damage computation with buffer_age
As per the spec:
> The back buffer can
> either be reported as invalid (has an age of 0) or it may be
> reported to contain the contents from n frames prior to the
> current frame.
So a buffer age of 1 means that the buffer was used in the last frame.
We were handling buffer_age==1 the same as buffer_age==0, i.e. we
returned the full damage for the surface.
[1] https://www.khronos.org/registry/EGL/extensions/EXT/EGL_EXT_buffer_age.txt
Timm Bäder [Thu, 29 Nov 2018 14:39:14 +0000 (15:39 +0100)]
gl renderer: Fix only_translation check
Matthias Clasen [Fri, 30 Nov 2018 21:38:02 +0000 (21:38 +0000)]
Merge branch 'force-emoji' into 'master'
Force emoji presentation
See merge request GNOME/gtk!431
Matthias Clasen [Tue, 27 Nov 2018 23:16:43 +0000 (18:16 -0500)]
Force emoji presentation
Append a variation selector to the Emoji sequences,
to force Emoji presentation. Without this, some
Emoji come out with text presentation by default.
Closes: Pango #334
Jakub Steiner [Fri, 30 Nov 2018 19:53:13 +0000 (20:53 +0100)]
Adwaita: updated switch control
- might be nasty to hide labels with CSS. We can fix properly later.
- the blue border seesm aliased when :checked
frederik.feichtmeier [Fri, 30 Nov 2018 10:54:22 +0000 (11:54 +0100)]
Adapt border-radius and box-shadow of menus to popovers
Jakub Steiner [Thu, 29 Nov 2018 20:54:56 +0000 (21:54 +0100)]
Adwaita: shade buttons
- it was a bit too flat
Jakub Steiner [Thu, 29 Nov 2018 19:11:39 +0000 (20:11 +0100)]
Adwaita: button tweaks
- step back on toning down the borders. Flatness !> legibility.
- darker active state for light
- draw gradinets from bottom up, to keep px sized shading regardless
of button size.
Jakub Steiner [Thu, 29 Nov 2018 13:34:53 +0000 (14:34 +0100)]
Adwaita: headerbar backdrop state
Jakub Steiner [Thu, 29 Nov 2018 12:12:44 +0000 (13:12 +0100)]
Adwaita: sync headerbar styling for devel mode
Timm Bäder [Thu, 29 Nov 2018 10:14:26 +0000 (11:14 +0100)]
Remove gtk_widget_intersect
It's been broken for quite a while now and doesn't make sense anymore
these days.
Timm Bäder [Thu, 29 Nov 2018 07:43:43 +0000 (08:43 +0100)]
popover: Don't recalculate position if unmapped
Timm Bäder [Thu, 29 Nov 2018 07:09:02 +0000 (08:09 +0100)]
gl renderer: Render non-trivial transforms to a texture
This way we can e.g. render rotated clips, borders, etc.
Timm Bäder [Sun, 12 Aug 2018 11:30:15 +0000 (13:30 +0200)]
inspect-button: Remove custom pick() implementation
This was added to work around the fact that pick() does not look at
insensitive widgets at all, but the replacement didn't properly work
either.
Timm Bäder [Sun, 12 Aug 2018 11:44:35 +0000 (13:44 +0200)]
popover: Get rid of a gtk_widget_get_allocation call
Use _compute_bounds instead.
Timm Bäder [Wed, 28 Nov 2018 17:40:48 +0000 (18:40 +0100)]
gl renderer: Cache offscreen textures per node, not size
Timm Bäder [Wed, 28 Nov 2018 08:30:27 +0000 (09:30 +0100)]
gl renderer: Expand matrix metadata extraction
Instead of getting the translation x/y everytime we use the modelview,
get it once, when extracting the metadata. Do the same with the scale.
And save if the matrix is "simple" at all, i.e. if it only consists of a
translation and/or scale. This will be helpful later when we start
drawing transformed nodes on textures.
Timm Bäder [Wed, 28 Nov 2018 16:09:29 +0000 (17:09 +0100)]
Revert "gldriver: Don't create surfaces to upload textures"
This reverts commit
6466e53bfcbbd975a3fd970913844ddb6ccc41d9.
This breaks GtkGLArea.
Timm Bäder [Tue, 27 Nov 2018 06:12:27 +0000 (07:12 +0100)]
widget: Remove one translate_coordinates copy
Just use the double version in the integer version.
Jakub Steiner [Wed, 28 Nov 2018 19:27:44 +0000 (20:27 +0100)]
Adwaita: flatten the headerbar again
frederik.feichtmeier [Wed, 28 Nov 2018 16:43:55 +0000 (17:43 +0100)]
Add bigger shadow and border-radius to menus
Increase the visibility of the box-shadow for menus
Introduce a border-radius variable for menus
Use this variable for all corners of menus except top for the top menus
Jakub Steiner [Wed, 28 Nov 2018 13:17:37 +0000 (14:17 +0100)]
Adwaita: tune button & hederbar colors
Mohammed Sadiq [Wed, 28 Nov 2018 11:21:45 +0000 (16:51 +0530)]
texttag: Replace gtk3-demo reference with gtk4-demo
Jakub Steiner [Tue, 27 Nov 2018 23:16:20 +0000 (00:16 +0100)]
Adwaita: buttons & headerbars
- tone down the bottom border contrast (increase bottom lightness,
decrease overall lightness)
- darken headerbars slightly (might require darkening wm colors when
dust settles)
Matthias Clasen [Tue, 27 Nov 2018 20:25:28 +0000 (20:25 +0000)]
Merge branch 'master-escape-included-svg' into 'master'
(#1471): base64-encode included SVGs to avoid mis-escaped characters
Closes #1471
See merge request GNOME/gtk!430
Federico Mena Quintero [Tue, 27 Nov 2018 18:13:31 +0000 (12:13 -0600)]
(#1471): base64-encode included SVGs to avoid mis-escaped characters
We wrap SVG data from icons within another SVG with extra styling
information. The wrapped SVG may contain characters that cannot be
part of a data: URL (https://fetch.spec.whatwg.org/#data-urls).
Librsvg 2.45 got more strict in its parsing of data: URLs; whereas
previously it ignored '#' characters in them, now it considers them to
be the start of a fragment identifier, which is not allowed in data:
URLs anyway.
To avoid unallowed characters, we now create a data: URL with a
base-64 encoded SVG.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1471
Timm Bäder [Tue, 27 Nov 2018 05:06:28 +0000 (06:06 +0100)]
headerbar: Remove superfluous parentheses
Timm Bäder [Tue, 27 Nov 2018 05:00:30 +0000 (06:00 +0100)]
widget: Query CSS values later in size_allocate
Move it below the "this widget only changed its position" check.
Timm Bäder [Tue, 27 Nov 2018 04:59:47 +0000 (05:59 +0100)]
widget: Save baseline without CSS values applied
Similar to what we do with width/height.
Timm Bäder [Tue, 27 Nov 2018 04:39:07 +0000 (05:39 +0100)]
adwaita: icon-shadow -> -gtk-icon-shadow
Timm Bäder [Mon, 26 Nov 2018 16:52:35 +0000 (17:52 +0100)]
gl renderer: Use stack to keep track of modelview matrix
So we can avoid calculating metadata for matrices all the time.
Timm Bäder [Fri, 23 Nov 2018 10:22:51 +0000 (11:22 +0100)]
colorplane: Convert crosshair rendering to snapshot
This is slightly different than the cairo version since the
half-transparent lines now overlap but nobody can see that anyway.
Timm Bäder [Fri, 23 Nov 2018 09:57:50 +0000 (10:57 +0100)]
colorscale: Cache hue texture
Otherwise we regenerate a new one on every snapshot() call.
Timm Bäder [Sat, 24 Nov 2018 10:15:29 +0000 (11:15 +0100)]
gldriver: Don't create surfaces to upload textures
Timm Bäder [Wed, 21 Nov 2018 16:51:10 +0000 (17:51 +0100)]
widget: Parent widgets may also consume motions
This is important when the target widget of an event is not the one that
would otherwise receive the gesture. For example, the GtkSwitch
implementation currently attaches a pan gesture to the switch itself,
but the target widget below the pointer might be the switch slider or
label.
See #1465